{extend name="public/base" /}
{block name="theme"}其他管理{/block}
{block name="small_theme"}合作商家管理{/block}
{block name="content"}
<div class="col-xs-12">
    <!-- PAGE CONTENT BEGINS -->
    <div class="row">
        <div class="col-xs-12">
            <h3 class="header blue lighter smaller">
                <i class="ace-icon fa fa-list-alt smaller-90"></i>
                新增合作商家
                <a href="javascript:showlayer('{:url('add')}');"><i class="ace-icon fa fa-plus smaller-90 middle" data-icon-hide="ace-icon fa fa-minus" data-icon-show="ace-icon fa fa-plus"></i></a>
            </h3>
            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <th class="center">
                        <label class="position-relative">
                            <input type="checkbox" class="ace" />
                            <span class="lbl"></span>
                        </label>
                    </th>
                    <th>ID</th>
                    <th>合作商家名称</th>
                    <th>地区名称</th>
                    <th>合作商家地址</th>
                    <th>是否启用</th>
                    <th>操作</th>
                </tr>
                </thead>

                <tbody>
                {volist name="Cooperative" id='vo'}
                <tr>
                    <td class="center">
                        <label class="position-relative">
                            <input type="checkbox" class="ace" />
                            <span class="lbl"></span>
                        </label>
                    </td>
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.area}</td>
                    <td>{$vo.address}</td>
                    <td>{$vo.status_text}</td>
                    <td>
                        <div class="hidden-sm hidden-xs btn-group">
                            <a class="btn btn-xs btn-danger" href="javascript:showlayer('{:url('edit',['id'=>$vo['id']])}'); " title="编辑">
                                <i class="ace-icon fa fa-edit bigger-120"></i>
                                编辑
                            </a>
                            <a class="btn btn-xs btn-warning" href="javascript:opendel2('{:url('del',['id'=>$vo['id']])}');" title="删除">
                                <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                删除
                            </a>
                        </div>
                        <div class="hidden-md hidden-lg">
                            <div class="inline position-relative">
                                <button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
                                    <i class="ace-icon fa fa-cog icon-only bigger-110"></i>
                                </button>
                                <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
                                    <li>
                                        <a href="{:url('edit',['id'=>$vo['id']])}" class="tooltip-success" data-rel="tooltip" title="编辑">
                                                <span class="green">
                                                    <i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
                                                </span>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
        </div><!-- /.span -->
    </div><!-- /.row -->
</div><!-- /.col -->
{/block}
{block name="js"}
<script>

    var setStatusUrl = "{:url('setStatus')}";

    highlight_subnav("{:url('index')}");
</script>
{/block}